Zepto(function($) {
  /**
   * 底部导航默认选中 我的冰果
   */
  $(".tab3").parent().addClass("active");
  /**
   * 跳转购物车
   *
   */
  $(".member-user").on("click",".to-cart",function () {
    window.location.href = "/usercenter/cart.html"
  });
  /**
   * 跳转地址列表
   *
   */
  $("#address").click(function () {
    window.location.href = "/usercenter/addressmanage/address.html"
  });
  /**
   * 跳转优惠券
   */
  $("#discounts").click(function () {
    window.location.href = "/usercenter/discount.html"
  });
  /**
   * 跳转订单列表-全部
   */
  $("#allOrder").click(function () {
    sessionStorage.setItem("code","code01");
    window.location.href = "/usercenter/order/orderList.html"
  });
  /**
   * 跳转订单列表-待付款
   */
  $("#waitPayment").click(function () {
    // alert("code02");
    sessionStorage.setItem("code","code02");
    window.location.href = "/usercenter/order/orderList.html"
  });
  // $(".order-state").on("click","#waitPayment",function () {
  //   sessionStorage.setItem("code","code02");
  //   window.location.href = "/usercenter/order/orderList.html"
  // });
  /**
   * 跳转订单列表-待发货
   */
  $("#waitDeliver").click(function () {
    sessionStorage.setItem("code","code03");
    window.location.href = "/usercenter/order/orderList.html"
  });
  /**
   * 跳转订单列表-待收货
   */
  $("#waitAcceptDeliver").click(function () {
    sessionStorage.setItem("code","code04");
    window.location.href = "/usercenter/order/orderList.html"
  });
  /**
   * 跳转订单列表-已完成
   */
  $("#waiteEstimate").click(function () {
    window.location.href = "/usercenter/order/orderList.html"
  });
  /**
   * 跳转绑个人信息号页面
   *
   */
  $(".member-read").click(function () {
    window.location.href = "/usercenter/center/userinfo.html"
  });
  /**
   * 联系我们
   *
   */
  $("#linkWe").click(function () {
    // window.location.href = "/usercenter/center/boundphone.html"
    window.location.href = "/usercenter/linkWe.html"
  });
  /**
   * 跳转绑定手机号
   *
   */
  $("#look").click(function () {
    window.location.href = "/usercenter/center/boundphone.html"
  });
  /**
   *bgimg
   */
   $("#txImg")[0].src = localStorage.getItem("tximg");
   $("#bgimg")[0].src = localStorage.getItem("tximg");
   $("#username")[0].innerHTML= localStorage.getItem("nick");
});